package com.hank.util;

import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;

public class ParamUtils {

    public static String getParam(JSONObject jsonObject,String field){
        JSONArray jsonArray = jsonObject.getJSONArray(field);
        if(jsonArray != null && jsonArray.size() > 0){
            return jsonArray.getString(0);
        }
        return null;
    }
}
